package com.ruoyi.scrap.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_scrap_apply_detail")
public class ScrapApplyDetail {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 库存id */
    private String stockId;
    /** 申请id */
    private String applyId;
    /** 序号 */
    private Integer sortNo;
    /** 名称 */
    private String goodsName;
    /** 规格 */
    private String goodsSpec;
    /** 数量 */
    private Integer goodsNum;
    /** 单位 */
    private String goodsUnit;
    /** 重量 */
    private BigDecimal weight;
    /** 单价 */
    private BigDecimal unitPrice;
    /** 提货地点 */
    private String place;
    /** 科室意见 */
    private String idea;
    /** 备注 */
    private String remark;

    private String delFlag;

    private String scrapClass;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("stockId", getStockId())
                .append("applyId", getApplyId())
                .append("sortNo", getSortNo())
                .append("goodsName", getGoodsName())
                .append("goodsSpec", getGoodsSpec())
                .append("goodsNum", getGoodsNum())
                .append("goodsUnit", getGoodsUnit())
                .append("weight", getWeight())
                .append("unitPrice", getUnitPrice())
                .append("place", getPlace())
                .append("idea", getIdea())
                .append("remark", getRemark())
                .toString();
    }
}
